package com.iotechn.unimall.data.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 
 * 
 * @author hct
 * @email 77802226@qq.com
 * @date 2021-04-01 10:58:13
 */

@Data
@TableName("unimall_purchase_order")
public class PurchaseOrderDO extends SuperDO {

	/**
	 * 采购单id
	 */
	/**
	 * 采购单编号
	 */
    @TableField("p_order_no")
    private String pOrderNo;
	/**
	 * 供应商id
	 */
    @TableField("supplier_id")
    private Long supplierId;
	/**
	 * 供应商名称
	 */
    @TableField("supplier_name")
    private String supplierName;
	/**
	 * 手机号码
	 */
    @TableField("supplier_phone")
    private String supplierPhone;
	/**
	 * 商品总额
	 */
    @TableField("p_order_goods_amount")
    private Long pOrderGoodsAmount;
	/**
	 * 税金总额
	 */
    @TableField("p_order_tax_amount")
    private Long pOrderTaxAmount;
	/**
	 * 订单总额
	 */
    @TableField("p_order_amount")
    private Long pOrderAmount;
	/**
	 * 备注信息
	 */
    @TableField("p_order_desc")
    private String pOrderDesc;
	/**
	 * 采购单状态，0 未审核，1 已审核，2 已入库，-1 退货，-2 退货完成
	 */
	@TableField("order_state")
	private Integer orderState;

	/**
	 * 
	 */
    @TableField("payment_code")
    private String paymentCode;
	/**
	 * 
	 */
    @TableField("return_state")
    private Integer returnState;
	/**
	 * 
	 */
    @TableField("admin_id")
    private Long adminId;
	/**
	 * 采购人
	 */
	@TableField("admin_realname")
	private String adminRealname;
	/**
	 *  联系人
	 */
    @TableField("supplier_contacts")
    private String supplierContacts;


	/**
	 * 优惠金额
	 */
	@TableField("p_order_conpon")
	private Integer pOrderConpon;


	/**
	 * 审批意见
	 */
	@TableField("p_order_audit_comment")
	private String pOrderAuditComment;

	/**
	 * 审批时间
	 */
	@TableField("p_order_audit_time")
	private Date pOrderAuditTime;

	/**
	 * 审批人Id
	 */
	@TableField("p_order_audit_userId")
	private Long pOrderAuditUserId;

	/**
	 * 审批人真实姓名
	 */
	@TableField("p_order_audit_realname")
	private String pOrderAuditRealname;


	/**
	 * 库id
	 */
	@TableField("warehouse_id")
	private Long warehouseId;


	/**
	 *
	 */
	@TableField("p_order_goods_count")
	private Float pOrderGoodsCount;
}
